package core.modules.database;

import java.io.Serializable;

public class SuperConfiguration implements Serializable {

	private static final long serialVersionUID = 9005565917069179129L;

	private Long id;
	private String identificationField;
	private String ip;
	private String cipherKey;
	private String password;

	public SuperConfiguration() {
	}

	public SuperConfiguration(String identificationField, String ip,
			String cipherKey, String password) {
		super();
		this.identificationField = identificationField;
		this.ip = ip;
		this.cipherKey = cipherKey;
		this.password = password;
	}

	public Long getId() {
		return id;
	}

	@SuppressWarnings("unused")
	private void setId(Long id) {
		this.id = id;
	}

	public String getIdentificationField() {
		return identificationField;
	}

	public void setIdentificationField(String identificationField) {
		this.identificationField = identificationField;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getCipherKey() {
		return cipherKey;
	}

	public void setCipherKey(String cipherKey) {
		this.cipherKey = cipherKey;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	// Metoda do weryfikacji has
	public boolean verifyPassword(String password) {
		return this.password.compareTo(password) == 0;
	}
}
